package com.zyh.demo;

import com.zyh.domain.Cat;

public class OOPDemo1 {
    public static void main(String[] args) {
        Cat cat1 = new Cat();
        Cat cat2 = new Cat();
        System.out.println(cat1.name);
        System.out.println(cat1.address);
        System.out.println(cat1.height);
        System.out.println(cat1.age);
        cat1.eat();
        cat1.catchMouse();
        cat1.show();

        cat2.name="tom";
        cat2.address="美国";
        cat2.height=100.9;
        cat2.age=2;
        System.out.println(cat2.name);
        System.out.println(cat2.address);
        System.out.println(cat2.height);
        System.out.println(cat2.age);
        cat2.eat();
        cat2.catchMouse();
        cat2.show();
    }
}
